home *** CD-ROM | disk | FTP | other *** search
/ Mastering Computers 3 / Mastering Computers Vol 3.iso / Win95 / Fun&Utils / MFCMSG.EXE / VIEW.H < prev   
Encoding:
C/C++ Source or Header  |  1995-07-01  |  489 b   |  22 lines

  1. //////////////////
  2. // Your typical view class. Displays information about the doc file.
  3. //
  4. class CFileView : public TView {
  5. protected:
  6.    CFileView();
  7.    DECLARE_DYNCREATE(CFileView)
  8.  
  9. public:
  10.    virtual ~CFileView();
  11.    virtual void OnDraw(CDC* pDC);
  12.    virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
  13.  
  14.    CFileDoc* GetDocument() { return (CFileDoc*)m_pDocument; }
  15.  
  16. protected:
  17.    //{{AFX_MSG(CFileView)
  18.    //}}AFX_MSG
  19.    DECLARE_MESSAGE_MAP()
  20. };
  21.  
  22.